//
//  ZSPUIBarButtonItem.h
//  ZSP_IOS
//
//  Created by Bruce on 2019/10/7.
//  Copyright © 2019 mlqk. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZSPUIBarButtonItem : UIBarButtonItem

@property(nonatomic, strong) UIButton *button;
//初始化包含图片的
- (ZSPUIBarButtonItem *)initWithLeftBarButton:(NSString *)title target:(id)target action:(SEL)method;

//初始化包含图片的UIBarButtonItem
- (ZSPUIBarButtonItem *)initContainImage:(UIImage *)buttonImage
                          imageViewFrame:(CGRect)imageFrame
                             buttonTitle:(NSString *)buttonTitle
                              titleColor:(UIColor *)titleColor
                              titleFrame:(CGRect)titleFrame
                             buttonFrame:(CGRect)buttonFrame
                                  target:(id)target
                                  action:(SEL)method;

//初始化不包含图片的UIBarButtonItem
- (ZSPUIBarButtonItem *)initWithbuttonTitle:(NSString *)buttonTitle
                                 titleColor:(UIColor *)titleColor
                                buttonFrame:(CGRect)buttonFrame
                                     target:(id)target
                                     action:(SEL)method;

//设置UIBarButtonItem是否可以被点击和对应的颜色
- (void)buttonIsCanClick:(BOOL)isCanClick
             buttonColor:(UIColor *)buttonColor
           barButtonItem:(ZSPUIBarButtonItem *)barButtonItem;

//平移UIBarButtonItem
- (NSArray<UIBarButtonItem *> *)setTranslation:(UIBarButtonItem *)barButtonItem translation:(CGFloat)translation;
@end

NS_ASSUME_NONNULL_END
